Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: Threaded Re:Username 1.0
Description: This adds the "Re: Username" link back to Threaded view so you know who the post is in reply to.
Working Under: UBB.Threads 6.3
Mod Status: Beta
Any pre-requisites: 6.3
Author(s): JoshPet
Date: 05/21/03
Credits: commissioned by steptogether.org
Files Altered: showthreaded.php, showthreaded.tmpl
New Files: none
Database Altered: none
Info/Instructions: Make changes to the 2 files.
Disclaimer: Please backup every file that you intend to modify. If the modification modifies the database, it's a good idea to backup your database before doing so. Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Attachments
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
Nice one Josh
Did this miss the 6.3 release?
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Joined: Aug 2000
Posts: 1,609
LOL. I was scratching my head when I read this one, but I figured I shouldn't question the Great One.
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah it was never added back in for Threaded view. <shrug> Got me.
I'll suggest to Rick. Maybe it could be done better with a JOIN of some sort, rather than a query.
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
he dopn't like joins
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
he he
Neither do I. But it's only 1 query.
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Getting
Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 40 bytes) in /path/to/threads/showthreaded.php on line 85
as line 85 is no where neer the code added
Line 85 is
$parentkeys = array_keys($tree[$currentkey]);
Fans Focus - Focusing on Fans of Sport
(Okay - mainly football (the British variety at the moment - but expanding all the time....)
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Hmmmmmm.... I hate to say it - I'm stumped - I have no idea what that error means or why it would run out of memory. Is the thread really long or something?
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Good point tried it on the latgest thread of over 5,500 replies - no wonder it timed out
Sorry.
Perhaps that is the reason why it wasn't included in 6.3
Fans Focus - Focusing on Fans of Sport
(Okay - mainly football (the British variety at the moment - but expanding all the time....)
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, it hasn't been included in showthreaded since 5.4 or 5.5. Although it really only needs to grab the usernumber from the DB and look up the user name.
That may have been showflat timing out normally - as it's got to display the username and subject for all 5500 posts on the page.
You didn't happen to check that thread with showthreaded before the mod?
I've seen showthreaded time out on large threads - likewise expanded postlist view.
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Just tried it on 6.2 with the same thread, and it bombs out - so it's not connected with the mod - sorry to accuse it of being faulty
Fans Focus - Focusing on Fans of Sport
(Okay - mainly football (the British variety at the moment - but expanding all the time....)
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
No problemo.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Posts:
449
Joined: February 2008
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614Nov 14th, 2025
Currently Online 697
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 25